<?php
class sscls_IndexModel extends sscls_Model
{
    function __construct()
    {
        parent::__construct();
    }
    
   function getArticles($catid)
   {
		return $this->_db->loadObjectList('select * from article where catid='.(int)$catid.' LIMIT 0,3');
   }
   function getArticle($id)
   {
		return $this->_db->loadObject('select * from article where id='.(int)$id);
   }
}
?>